<div id="<?php echo $id ?>" title="Filters">
    Filter: <select name="<?php echo $id; ?>filterDropdown" id="<?php echo $id; ?>filterDropdown" style="font-size: 10px;">
        <?php foreach ($filters as $filter): ?>
            <?php
            //print_r($filter->toArray());
            $array = $filter->toArray();
            $filterTalent = array();
            $filterClass = array();
            $value = array();
            if (count($array["FilterTalent"]) > 0) {
                foreach ($array["FilterTalent"] as $ft) {
                    $value[] = $ft["Talent"]["PClass"]["name"].":".$ft["Talent"]["talentid"];
                    //        $filterTalent["name"] = $ft["Talent"]["name"];
                    //        $filterTalent["class"] = $ft["Talent"]["PCLass"]["name"];
                    //        $filterTalent["talentid"] = $ft["Talent"]["talentid"];
                }
            }
            elseif (count($array["FilterClass"]) > 0) {
                foreach ($array["FilterClass"] as $ft) {
                    $value[] = $ft["PClass"]["name"].":0";
                    $value[] = $ft["PClass"]["name"].":1";
                    $value[] = $ft["PClass"]["name"].":2";
                    $value[] = $ft["PClass"]["name"].":3";
                    //        $filterClass["name"] = $ft["Talent"]["name"];
                    //        $filterClass["class"] = $ft["PCLass"]["name"];
                }
            }

            $value = implode("|", $value);
            echo '<option value="'.$value.'">'.$filter->getName().'</option>';

            ?>
        <?php endforeach; ?>
    </select><br />
    Rank:
    <div class="">
        <?php foreach ($ranks as $id => $rank): ?>
            <?php
            $count = (isset($count) && $count == 0 ? 1 : 0);
            echo '<div class="rankCheck"><input type="checkbox" name="rankCheck[]" id="'.$rank.'" value="'.$rank.'"> <label for="'.$rank.'">'.$rank.'</label></div>';
            if ($count)
                echo "<br />";
            ?>
        <?php endforeach; ?>
    </div>
</div>


